#! /usr/bin/php5
<?php
$someHtml = '
    <h1>Hello World!</h1>
    <OBJECT classid="butt"></OBJECT>
    <font style="color:red;">xxxxxxxxxxxxxphp</font>
    <p><font color="red" size="20">This is GtkHTML</font></p>
    <h2>Bye Bye World!</h2>';
$x = new GtkWindow();
$y = new GtkHTML();
$y->connect('object-requested', 'on_object_requested');
$y->set_title("HTML Test!");
$y->load_from_string($someHtml);
$y->modify_base(Gtk::STATE_NORMAL, $org_bg);
function on_object_requested (GtkHTML $aHtml, $aGtkHtmlEmbedded)
{
    echo $aGtkHtmlEmbedded->classid;
    //print_r($aGtkHtmlEmbedded) ;
    $sImg = GtkImage::new_from_file('/home/alee/Desktop/logo-yy.gif');
    $sImg->set_size_request(86, 33);
    $aGtkHtmlEmbedded->add($sImg);
    $sImg->show();
    return true;
}
$x->add($y);
$x->show_all();
$x->connect_simple('destroy', array('Gtk' , 'main_quit'));
Gtk::main();
?>
